<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/9/25
 * Time: 9:22
 */

namespace app\common\model;


class Access extends BaseModel
{
    protected $table = 'ng_access';
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';

    protected $hidden = ['created_at', 'updated_at'];

    public function node()
    {
        return $this->belongsTo('Node', 'node_id', 'id');
    }

}